public class Student {
    private String name;
    private int id;
    private int attendance;
    private double marks;
    private int answerQuestions;
    public Student() {
    }

    public Student(String name, int id) {
        this.name = name;
        this.id = id;

    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAttendance() {
        return attendance;
    }

    public void setAttendance(int attendance) {
        this.attendance = attendance;
    }

    public double getMarks() {
        return marks;
    }

    public void setMarks(double marks) {
        this.marks = marks;
    }

    public int getAnswerQuestions() {
        return answerQuestions;
    }

    public void setAnswerQuestions(int answerQuestions) {
        this.answerQuestions = answerQuestions;
    }

    @Override
    public String toString() {
        return "学生{" +
                "姓名='" + name + '\'' +
                ", 学号=" + id +
                '}';
    }
}
